﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EchoWx.Models
{
    /// <summary>
    /// 账号所属权限
    /// </summary>
    public class AccountView
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 性别0女1男
        /// </summary>
        public int Gender { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 角色类型
        /// </summary>
        public string RoleName { get; set; }
        /// <summary>
        /// 微信OpenId
        /// </summary>
        public string OpenId { get; set; }
        /// <summary>
        /// 微信UnionId
        /// </summary>
        public string UnionId { get; set; }
        /// <summary>
        /// 头像地址
        /// </summary>
        public string AvatarUrl { get; set; }
        /// <summary>
        /// 用户所属角色拥有的视图权限Code集合字符串
        /// </summary>
        public string UserRoleViewCode { get; set; }
        /// <summary>
        /// 授权Token
        /// </summary>
        public string AccessToken { get; set; }
    }
}
